import Api from './api'

class PhotoStudioApi extends Api {
  recharge (data) {
    return this.request({
      url: `${this.servicePath}/${this.modulePath}/recharge`,
      method: 'put',
      data
    })
  }

  updateStatus ({ account, enable }) {
    return this.request({
      url: `${this.servicePath}/${this.modulePath}/enable/${account}`,
      method: 'put',
      data: { enable }
    })
  }

  resetPassword ({ account, password, confirmPassword }) {
    return this.request({
      url: `${this.servicePath}/${this.modulePath}/resetPassword/${account}`,
      method: 'put',
      data: { password, confirmPassword }
    })
  }
}

export default new PhotoStudioApi('factory/photoStudio')
